import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, Length } from "class-validator";

export class LoginUserDto {
    @ApiProperty({example:'newking'})  
    @IsNotEmpty()
    @Length(1, 50)
    username: string;
    
    @ApiProperty({example:'111111'})  
    @IsNotEmpty()
    @Length(1, 50)
    password: string;
}